package com.vn.ld.btc.dao.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


/**
 * The persistent class for the id_counters database table.
 * 
 */
@Entity
@Table(name="id_counters")
@NamedQuery(name="IdCounter.findAll", query="SELECT i FROM IdCounter i")
public class IdCounter implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="counter_id", unique=true, nullable=false)
	private Integer counterId;

	@Column(name="active_flg")
	private Integer activeFlg;

	@Column(name="counter_end")
	private Integer counterEnd;

	@Column(name="counter_key", length=20)
	private String counterKey;

	@Column(name="counter_start")
	private Integer counterStart;
	
	@Column(name="current_counter")
	private Integer currentCounter;

	@Column(name="counter_step")
	private Integer counterStep;
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="counter_date")
	private Date counterDate;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="input_date")
	private Date inputDate;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="update_date")
	private Date updateDate;

	public IdCounter() {
	}

	public Integer getCounterId() {
		return this.counterId;
	}

	public void setCounterId(Integer counterId) {
		this.counterId = counterId;
	}

	public Integer getActiveFlg() {
		return this.activeFlg;
	}

	public void setActiveFlg(Integer activeFlg) {
		this.activeFlg = activeFlg;
	}

	public Integer getCounterEnd() {
		return this.counterEnd;
	}

	public void setCounterEnd(Integer counterEnd) {
		this.counterEnd = counterEnd;
	}

	public String getCounterKey() {
		return this.counterKey;
	}

	public void setCounterKey(String counterKey) {
		this.counterKey = counterKey;
	}

	public Integer getCounterStart() {
		return this.counterStart;
	}

	public void setCounterStart(Integer counterStart) {
		this.counterStart = counterStart;
	}

	public Integer getCurrentCounter() {
		return currentCounter;
	}

	public void setCurrentCounter(Integer currentCounter) {
		this.currentCounter = currentCounter;
	}

	public Integer getCounterStep() {
		return this.counterStep;
	}

	public void setCounterStep(Integer counterStep) {
		this.counterStep = counterStep;
	}

	public Date getCounterDate() {
		return counterDate;
	}

	public void setCounterDate(Date counterDate) {
		this.counterDate = counterDate;
	}

	public Date getInputDate() {
		return this.inputDate;
	}

	public void setInputDate(Date inputDate) {
		this.inputDate = inputDate;
	}

	public Date getUpdateDate() {
		return this.updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

}